<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="roadtripplanner1.Waypoints" %>
<%@ page import="roadtripplanner1.PMF" %>

<html>
<body>

<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
	if (user != null) {
%>
<p>Hello, <%=user.getNickname()%>! (You can <a
	href="<%=userService.createLogoutURL(request.getRequestURI())%>">sign
out</a>.)</p>
<%
	} else {
%>
<p>Hello! <a
	href="<%=userService.createLoginURL(request.getRequestURI())%>">Sign
in</a> to include your name with greetings you post.</p>
<%
	}
%>


<form action="/setWaypoints" method="post">
<div><textarea name="waypoints" rows="3" cols="60"></textarea></div>
<div><input type="submit" value="Post waypoints" /></div>
</form>

<p> Bulbul</p>


//function response(obj) {  
    //obj.text contains the text of the page that was requested  
   // str = obj.text;
   // var stringArray = str.split("#");
    
	



</body>
</html>
